﻿CREATE FUNCTION [dbo].[ReturnRand] ( )
RETURNS real
AS
BEGIN
 declare @r real
 set @r = (select r from vRand)
 return @r
END